package me.itsoo.artemis.framework.repository.demo1;

import lombok.Data;
import me.itsoo.artemis.framework.repository.lang.Field;
import me.itsoo.artemis.framework.repository.lang.PrimaryKey;
import me.itsoo.artemis.framework.repository.lang.Table;

/**
 * User
 *
 * @author zxy
 * @version 0.0.1
 * @since 2023/5/6
 */
@Data
@Table("t_user")
public class User {

    @PrimaryKey
    private Long id;

    //@PrimaryKey
    private Long pid;

    @Field("user_name")
    private String username;

    private Integer age;

    @Field("f_text")
    private String page;

//    @Field("f_json")
//    private Map<String, Object> ext;

}
